import request from '@/utils/request'

// 查询销售出库商品明细列表
export function listSalesDeliveryGoods(query) {
  return request({
    url: '/business/salesDeliveryGoods/list',
    method: 'get',
    params: query
  })
}

// 查询销售出库商品明细详细
export function getSalesDeliveryGoods(itemId) {
  return request({
    url: '/business/salesDeliveryGoods/' + itemId,
    method: 'get'
  })
}

// 新增销售出库商品明细
export function addSalesDeliveryGoods(data) {
  return request({
    url: '/business/salesDeliveryGoods',
    method: 'post',
    data: data
  })
}

// 修改销售出库商品明细
export function updateSalesDeliveryGoods(data) {
  return request({
    url: '/business/salesDeliveryGoods',
    method: 'put',
    data: data
  })
}

// 删除销售出库商品明细
export function delSalesDeliveryGoods(itemId) {
  return request({
    url: '/business/salesDeliveryGoods/' + itemId,
    method: 'delete'
  })
}

// 导出销售出库商品明细
export function exportSalesDeliveryGoods(query) {
  return request({
    url: '/business/salesDeliveryGoods/export',
    method: 'get',
    params: query
  })
}